package com.freemalll.merchant.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.MerMerchantCapitalOrderDto;
import com.freemalll.merchant.domain.entity.MerMerchantCapitalOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-05-26
 */
@Mapper
public interface MerMerchantCapitalOrderMapper extends BaseMapper<MerMerchantCapitalOrder> {


    @Select(" select capital_id,source_id,mer_id,ranking,source_name,payment_type,payment_account from  mer_merchant_capital_order where delete_flag = 0 and  mer_id = #{merId} order by ranking ")
    List<MerMerchantCapitalOrderDto> listByMerId(@Param("merId") String merId);
}
